package com.google.rui.utils;

import java.io.IOException;
import java.util.logging.LogManager;

import android.app.Application;

public class CrashApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();
		CrashHandler crashHandler = CrashHandler.getInstance();
		// 注册crashHandler
		crashHandler.init();
		try {
			LogManager.getLogManager().readConfiguration(getAssets().open("log.properties"));//重新获取日志配置使用java.util.logging.logger日志打印类
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
